/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.api;

/**
 * <p>Project: app2022 - Demo
 * <p>Powered by webrx On 2022-01-11 14:15:24
 *
* @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Demo {
    public static void main(String[] args) {
        //接口实现类调用
        var dd = new DbDaoImpl();
        System.out.println(dd.pf(3));
        dd.hello("李四");
        System.out.println(B.sum(6,7));


        //lambda表达式调用（接口中只有一个抽象方法，并且只有一个）
        B b = a->a*a;
        System.out.println(b.pf(6));
        b.hello("王五");
        System.out.println(B.sum(5,5));

    }
}
